/** \file Endian.cc
 * Definitions for the functions related to endian-ness.
 *
 * (c) Copyright  Semih Cemiloglu
 * All rights reserved, see COPYRIGHT file for details.
 *
 * $Id: Endian.cc 119 2006-06-21 04:57:25Z semihc $
 *
 *
 */

#include "Endian.hh"

using namespace TC;

TC_IDENT("$Id$");


bool TC::LittleEndian()
{
  unsigned int i = 0x01;

  if(0x01 == *reinterpret_cast<unsigned char*>(&i))
    return true;  // Little-endian
  else
    return false; // Big-endian
}
